#include "StdAfx.h"
#include "../vfs/FileDescriptor.h"
#include "../vfs/FileProxy.h"

namespace ja2{ namespace vfs
{
	FileProxy::FileProxy(FileDescriptorPtr_t const &pRight)
		: m_pDesriptor(pRight)
	{
	}

	boost::filesystem::path const &FileProxy::get_path() const
	{
		return m_pDesriptor->get_file_name();
	}

	FileDevice FileProxy::open(std::ios_base::openmode Mode) const
	{
		return FileDevice(m_pDesriptor->get_file_handle(Mode));
	}
} /*vfs*/} /*ja2*/